﻿
#ifndef _DEMO_CLIENT_H_

#define WIN32_LEAN_AND_MEAN
#include <errno.h>
#include <memory.h>
#include <stdio.h>
#ifndef _WIN32
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#else
#include <windows.h>
#endif
#include <fcntl.h>
#include <fstream>
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/x509.h>
#include <pthread.h>
#include <sstream>
#include <string>

#include "utils.h"
#include "code_convert.h"

class HttpClient {
public:
    int test();

    static int free(SSL &ssl, SOCKET s);

private:
    int SSL_CTX_use_PrivateKey_file_pass(SSL_CTX *ctx, char *filename, char *pass);
};

#endif // !_DEMO_CLIENT_H_